home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir24 / paket61.zip / SCRIPTS@.EXE / BBSCONN.SCP < prev    next >
Text File  |  1994-08-15  |  3KB  |  66 lines

  1. E
  2. E  *************************************************************************
  3. E  *                    This is the BBSCONN Script                         *
  4. E  *   This Script establishes contact with the BBS via an intermediate    *
  5. E  *   Node.  The Node is called, then that Node connects to the BBS.      *
  6. E  *                                                                       *
  7. E  *  Once it has established BBS contact, the Script returns to paKet.    *
  8. E  *                                                                       *
  9. E  *  This Script may be used as the Connect Script for Mail Forwarding    *
  10. E  *  because as soon as we are connected to the BBS, paKet can then       *
  11. E  *  proceed to perform standard Mail Forwarding protocol with that BBS.  *
  12. E  *************************************************************************
  13.  
  14. * I am assuming for this sample Script that we are connecting to our BBS
  15. * via an intermediate Node.  That is, we establish a connection with the
  16. * intermediate Node, and then issue a second connect command to reach our
  17. * BBS from there.
  18.  
  19. * Send a BREAK to the TNC to get into Command Mode
  20. B
  21.  
  22. * Then wait for the "cmd:" prompt.  Quit if not received within 5 seconds.
  23. w 5,cmd:
  24. q
  25.  
  26. * Now, connect to the intermediate Node.
  27. * In my sample I assumed the callsign of the Node is VK2NOD and that I am
  28. * calling that Node via a digipeater VK2RPT.  Of course you should change
  29. * the following command to specify the callsign(s) you need.
  30. S CONNECT VK2NOD via VK2RPT
  31.  
  32. * ... and wait up to 60 seconds for the TNC's CONNECTED message
  33. w 60,CONNECTED to VK2NOD
  34.  
  35. * If connection not established within 60 seconds, give up.
  36. G noanswer
  37. E
  38. E            *** We are now connected to the Node, VK2NOD ***
  39. E
  40.  
  41. * Now that we are in contact with the Node, we can tell it to attempt a
  42. * connection to our BBS.
  43. * Don't forget to change the following command to use YOUR BBS's callsign.
  44. * (Sometimes the Node requires a port number as well, in which case the
  45. * command might look something like:
  46. *                      S CONNECT 1 VK2BBS
  47. * The sysop at the Node can advise you on this.)
  48. S CONNECT VK2BBS
  49.  
  50. W 60,Connected to VK2BBS
  51. g noanswer
  52. R 0
  53.  
  54. *****************************************************************************
  55. *   If you use this Script to establish contact with the BBS for
  56. *   Mail Forwarding, paKet simply requires you to establish the
  57. *   connection with the desired BBS, then return with a Return Code
  58. *   of 0.
  59. *
  60. *   If a successful connection is not made, return with Return Code -1
  61. *   as shown here.
  62. *****************************************************************************
  63. :noanswer
  64. E We did not establish the connection with the BBS
  65. R -1
  66.